package com.yunnuo.portal.commonlink.entity;

import com.yunnuo.system.comm.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * cms 信息
 *
 * @author 魏洪福（15064000912@163.com）
 * @create 2018-09-28-14:31
 */
@Entity
@Table(name="PORTAL_LINK")
public class Link extends IdEntity {

    /** 标题 */
    private String title;

    /** 图片路径 */
    private String image;

    /** 操作人员 */
    private String userId;

    /** 操作人员中文名 */
    private String userRealName;

    /** 三个控制权限的条件：人员、部门、角色 */
    private String rightUserId;
    private String rightDeptId;
    private String rightRoleId;

    /** 描述 */
    private String remark;

    /** 状态 0.过时；1.发布；2.删除 */
    private Integer status;

    /** 排序 */
    private Integer sort;

    //创建时间
    private Date createTime;
    //修改时间
    private Date updateTime;

    @Override
    public String toString() {
        return "Link{" +
                "title='" + title +
                ", image='" + image +
                ", userId='" + userId +
                ", userRealName='" + userRealName +
                ", rightUserId='" + rightUserId +
                ", rightDeptId='" + rightDeptId +
                ", rightRoleId='" + rightRoleId +
                ", remark='" + remark +
                ", status=" + status +
                ", sort=" + sort +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getRightUserId() {
        return rightUserId;
    }

    public void setRightUserId(String rightUserId) {
        this.rightUserId = rightUserId;
    }

    public String getRightDeptId() {
        return rightDeptId;
    }

    public void setRightDeptId(String rightDeptId) {
        this.rightDeptId = rightDeptId;
    }

    public String getRightRoleId() {
        return rightRoleId;
    }

    public void setRightRoleId(String rightRoleId) {
        this.rightRoleId = rightRoleId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
